import { createRouter, createWebHashHistory } from "vue-router";

import Home from "@/pages/Home.vue";
import Categories from "@/pages/Categories.vue";
import Blog from "@/pages/Blog.vue";
import Search from "@/pages/Search.vue";

const router = createRouter({
  routes: [
    {
      path: "/home",
      name: "Home",
      component: Home,
      alias: "/",
    },
    {
      path: "/categories",
      name: "Categories",
      component: Categories,
    },
    {
      path: "/blog",
      name: "Blog",
      component: Blog,
    },
    {
      path: "/search",
      name: "Search",
      component: Search,
      
    },
  ],
  history: createWebHashHistory(),
});

export default router;
